#include <stdio.h>
#include <string.h>

/*
strcat(char dest[], char src[]) 把src数组 '\0' 之前的字符串追加到dest字符后，
如果dest中有'\0' , 则会把'\0'给覆盖掉， 然后组成新的dest字符串重新添加'\0'
*/
int main () {
    char word[20];
    char explain[20];
    char sql[50];
    printf("please input you select word:");
    gets(word);

    printf("please input word explain:");
    gets(explain);

    strcpy(sql, word);
    printf("sql = %s \n", sql);

    strcat(sql, explain);
    printf("sql = %s \n", sql);

    return 0;
}